<div class="aside-wrap">
  <!-- if you want to use a custom scroll when aside fixed, use the slimScroll
    <div class="navi-wrap" ui-jq="slimScroll" ui-options="{height:'100%', size:'8px'}">
  -->
  <div class="navi-wrap">
    <!-- user -->
    <div class="clearfix hidden-xs text-center hide" id="aside-user">
      <div class="dropdown wrapper" uib-dropdown>
        <a>
          <span class="thumb-lg w-auto-folded avatar m-t-sm">
            <img ng-if="main.picture" ng-src="{{main.picture}}" />
            <img ng-if="!main.picture" src="img/a0.jpg">
          </span>
        </a>
        <a href class="dropdown-toggle hidden-folded" uib-dropdown-toggle>
          <span class="clear">
            <span class="block m-t-sm">
              <strong class="font-bold text-lt">{{main.username}}</strong>
              <b class="caret"></b>
            </span>
          </span>
        </a>
        <!-- dropdown -->
        <ul class="dropdown-menu animated fadeInRight w hidden-folded">
          <li>
            <a ng-if="main.id" ui-sref="app.self">修改信息</a>
          </li>
          <li ng-if="main.id" class="divider"></li>
          <li>
            <a ng-if="main.id" ng-click="openChanagePwd()">修改密码</a>
          </li>
          <li ng-if="main.id" class="divider"></li>
          <li ng-if="main.id">
            <a ng-click="loginout()">注销</a>
          </li>
          <li ng-if="!main.id">
            <a ui-sref="access.login">登录</a>
          </li>
        </ul>
        <!-- / dropdown -->
      </div>
      <div class="line dk hidden-folded"></div>
    </div>
    <!-- / user -->

    <!-- nav -->
    <nav ui-nav class="navi" ng-include="'tpl/blocks/nav.html'"></nav>
    <!-- nav -->

  </div>
</div>